<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_site_lease.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_site_lease.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_site_lease',
                    name: 'T_site_lease',
                    url: "/T_site_lease/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_certificate_number":"","c_unit_name":"","c_social_instructor_level":"","c_remark":"","c_is_buy_teaching_season_card":"","c_insurance_number":"","c_insurance_company":"","c_id":"","c_gender":"","c_disabled":"","c_customer_phone":"","c_customer_name":"","c_customer_id_card":"","c_creator_name":"","c_creator_id":"","c_create_time":"","c_valid_begin_date":"","c_valid_end_date":""},
                editFormOptions: [[{"title":"c_certificate_number","field":"c_certificate_number","type":"text"},
                               {"title":"c_unit_name","field":"c_unit_name","type":"text"},
                               {"title":"c_social_instructor_level","field":"c_social_instructor_level","type":"text"}],
                              [{"title":"c_remark","field":"c_remark","type":"text"},
                               {"title":"c_is_buy_teaching_season_card","field":"c_is_buy_teaching_season_card","type":"text"},
                               {"title":"c_insurance_number","field":"c_insurance_number","type":"text"}],
                              [{"title":"c_insurance_company","field":"c_insurance_company","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_gender","field":"c_gender","type":"text"}],
                              [{"title":"c_disabled","field":"c_disabled","type":"text"},
                               {"title":"c_customer_phone","field":"c_customer_phone","type":"text"},
                               {"title":"c_customer_name","field":"c_customer_name","type":"text"}],
                              [{"title":"c_customer_id_card","field":"c_customer_id_card","type":"text"},
                               {"title":"c_creator_name","field":"c_creator_name","type":"text"},
                               {"title":"c_creator_id","field":"c_creator_id","type":"text"}],
                              [{"title":"c_create_time","field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_valid_begin_date","field":"c_valid_begin_date","type":"text"},
                               {"title":"c_valid_end_date","field":"c_valid_end_date","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_certificate_number',title:'c_certificate_number',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_unit_name',title:'c_unit_name',type:'string',width:120,align:'left'},
                       {field:'c_social_instructor_level',title:'c_social_instructor_level',type:'string',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_is_buy_teaching_season_card',title:'c_is_buy_teaching_season_card',type:'sbyte',width:120,align:'left'},
                       {field:'c_insurance_number',title:'c_insurance_number',type:'string',width:120,align:'left'},
                       {field:'c_insurance_company',title:'c_insurance_company',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_gender',title:'c_gender',type:'int',width:120,align:'left'},
                       {field:'c_disabled',title:'c_disabled',type:'sbyte',width:120,align:'left'},
                       {field:'c_customer_phone',title:'c_customer_phone',type:'string',width:120,align:'left'},
                       {field:'c_customer_name',title:'c_customer_name',type:'string',width:120,align:'left'},
                       {field:'c_customer_id_card',title:'c_customer_id_card',type:'string',width:120,align:'left'},
                       {field:'c_creator_name',title:'c_creator_name',type:'string',width:120,align:'left'},
                       {field:'c_creator_id',title:'c_creator_id',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'c_create_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_valid_begin_date',title:'c_valid_begin_date',type:'bigint',width:120,align:'left'},
                       {field:'c_valid_end_date',title:'c_valid_end_date',type:'bigint',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
